dataSource {
	pooled = true
	driverClassName = "com.mysql.jdbc.Driver"
	username = "root"
	password = ""
	// dialect = org.hibernate.dialect.MySQLInnoDBDialect // For MySQL and mysql-connector-java:5.1.13
	dialect = org.hibernate.dialect.MySQL5InnoDBDialect // For MySQL 5.5.13 mysql-connector-java:5.1.16
	// logSql = true
}
hibernate {
    cache.use_second_level_cache = true
    cache.use_query_cache = true
    cache.provider_class = 'net.sf.ehcache.hibernate.EhCacheProvider'
}
// environment specific settings
environments {
    development {
        dataSource {
			dbCreate = "create-drop" // one of 'create', 'create-drop','update'
			url = "jdbc:mysql://localhost/UsersModuleTest?useUnicode=true&characterEncoding=UTF-8&characterSetResults=UTF-8"
        }
    }
    test {
        dataSource {
            dbCreate = "update"
            url = "jdbc:mysql://localhost/UsersModuleTest?useUnicode=true&characterEncoding=UTF-8&characterSetResults=UTF-8"
        }
    }
    production {
        dataSource {
            dbCreate = "update"
            url = "jdbc:mysql://localhost/UsersModuleTest?useUnicode=true&characterEncoding=UTF-8&characterSetResults=UTF-8"
        }
    }
}
